// 1. 第三方
import React, { memo } from 'react';
import { renderRoutes } from 'react-router-config';
import { HashRouter } from 'react-router-dom';
import routes from './router';

// 2. 工具 ( api / 其他 )

// 3. 组件
import AppHeader from '@/layout/app-header';
import AppFooter from '@/layout/app-footer';
const App = memo(function NustCake() {
    return (
        <HashRouter>
            {/* AppHeader */}
            <AppHeader />
            {/* Main */}
            {renderRoutes(routes)}
            {/* AppFooter */}
            <AppFooter />
        </HashRouter>
    );
});

export default App;
